<?php
	/**
	 * 平台控制器
	 */
	class PlatformController extends Controller
	{
		/**
		 * 判断用户是否已经登录,防止翻墙
		 */
		protected function checklogin()
		{
			$no_need=array
			(
				'Admin'=>array('login','check','catpcha'),
				);
			if(isset($no_need[CONTROLLER]) && in_array(ACTION, $no_need[CONTROLLER]))
			{
				return ;
			}
			@session_start();
			if(!isset($_SESSION['adminInfo']))
			{
				$this->jump('index.php?p=Back&c=Admin&a=login','请你先登录');
			}
		}
		public function __construct()
		{
			parent::__construct();
			$this->checklogin();
		}
	}